﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LiveSequence.Dialogs
{
  public partial class DlgProgressInfo : Form
  {
    private delegate void ProgressChangedDelegate(int iPercentProgress, object userData);

    public DlgProgressInfo()
    {
      InitializeComponent();
    }

    public void ProgressChanged()
    {
      
    }

    public void ProgressChanged(int iPercentProgress, object userData)
    {
      if (this.InvokeRequired)
      {
        Invoke(new ProgressChangedDelegate(this.ProgressChanged), new object[] { iPercentProgress, userData });
      }
      else
      {
        if (iPercentProgress > 0)
        {
          this.progressBar1.Value = iPercentProgress;
          this.textBox1.AppendText(userData.ToString());
          this.textBox1.AppendText("\n");
        }
      }
    }
  }
}
